<?
	$pageSize = 8;
	$pageNum = 1;
	
    if (isset($_GET['pageNum'])==true) $pageNum = $_GET['pageNum'];
	
	$totalRows = 0;
	$sanpham=$t->get_phantrang_order($pageNum,$pageSize,$totalRows,"tintuc",$bb);
	$sp_t=$t->get_by_thutu("tintuc",$bb);
	$row_sp_t=mysql_fetch_assoc($sp_t);
?>

<div class="right" style="border-radius:5px 5px 5px 5px;">
<div class="title_right">
	<h1><?=$row_sp_t['ten_'.$lang]?></h1>
</div>
<div class="content_right" style="text-align:center;">
    <div style="width:700px;float:left;margin-left:18px;text-align:left;">
    	<? while($row_sp_index=mysql_fetch_assoc($sanpham)){
		$idloai=$row_noibat['idloai'];
		$loai=$t->get_by_thutu("tin",$idloai);
		$row_loai=mysql_fetch_assoc($loai);
			?>
            <div style="width:640px;float:left;padding:8px 0px;">

            <?=$row_sp_index['noidung_'.$lang]?>
            </div>
        <? }?>
    </div>
    <div class="showpageArea" style="text-align:right;">
        <?php echo $t->pagesList1($rooturl.$_GET['a'].'/'.$_GET['b'],$totalRows,$pageNum,$pageSize,5); ?>
</div>
</div>
</div>
